<% layout('/layouts/default.html', {title: '审核记录管理', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header">
			<div class="box-title">
				<i class="fa icon-notebook"></i> ${text('审核记录管理')}
			</div>
			<div class="box-tools pull-right">
				<a href="#" class="btn btn-default" id="btnSearch" title="${text('查询')}"><i class="fa fa-filter"></i> ${text('查询')}</a>
				<a href="#" class="btn btn-default" id="btnSetting" title="${text('设置')}"><i class="fa fa-navicon"></i></a>
			</div>
		</div>
		<div class="box-body">
			<#form:form id="searchForm" model="${examine}" action="${ctx}/examine/examine/listData" method="post" class="form-inline"
					data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
				<div class="form-group">
					<label class="control-label">${text('车辆名称')}：</label>
					<div class="control-inline">
						<#form:input path="carTitle" maxlength="64" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">${text('审核结果')}：</label>
					<div class="control-inline width-120">
						<#form:select path="examineResult" blankOption="true" blankOptionLabel="全部" dictType="h_examine_result" class="form-control isQuick" />
					</div>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-sm"><i class="glyphicon glyphicon-search"></i> ${text('查询')}</button>
					<button type="reset" class="btn btn-default btn-sm isQuick"><i class="glyphicon glyphicon-repeat"></i> ${text('重置')}</button>
				</div>
			</#form:form>
			<table id="dataGrid"></table>
			<div id="dataGridPage"></div>
		</div>
	</div>
</div>
<% } %>
<script>
//# // 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	emptyDataHint: true,
	columnModel: [
		{header:'${text("车辆名称")}', name:'carTitle', width:150, align:"center", frozen:true, formatter: function(val, obj, row, act){
			return '<a href="${ctx}/examine/examine/examineInfo?carId='+row.carId+'&isEdit=f&examineResult='+row.examineResult+'&examineContent='+row.examineContent+'" class="btnList" data-title="${text("审核车辆")}">'+(val||row.id)+'</a>';
		}},
		{header:'${text("审核结果")}', name:'examineResult', index:'a.examine_result', width:150, align:"center", formatter: function(val, obj, row, act){
                return js.getDictLabel("#{@DictUtils.getDictListJson('h_examine_result')}", val, '${text("未知")}', true);
            }},
		{header:'${text("审核内容")}', name:'examineContent', index:'a.examine_content', width:150, align:"center"},
		{header:'${text("审核者")}', name:'createBy', index:'a.examine_content', width:150, align:"center"},
		{header:'${text("审核时间")}', name:'createDate', index:'a.examine_content', width:150, align:"center"},
	],
	ajaxSuccess: function(data){
		
	}
});
</script>